<%--
  Created by IntelliJ IDEA.
  User: 栋
  Date: 2022/12/6
  Time: 16:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <%@include file="/pages/base/base.jsp"%>
    <script>
        function jiechulahei(user_id){
            r=confirm("是否确定解除");
            if(r==true){
                window.location.href="adminServlet?action=jiechulahei&user_id="+user_id.innerText;
            }
        }
    </script>
</head>
<body>
<div class="container">
    <%@include file="/pages/base/head.jsp"%>
    <%@include file="/pages/base/admin_nav.jsp"%>
    <div>

        <div class="errorMsg">
            ${ empty requestScope.msg ? "":requestScope.msg }
        </div>
        <c:if test="${sessionScope.blackList!=null}">
            <table id="personalItems_tb">
                <tr>
                    <th>用户编号</th>
                    <th>拉黑原因</th>
                    <th>拉黑日期</th>
                    <th>拉黑时间</th>
                    <th>管理员</th>
                    <th>管理</th>
                </tr>
                <c:forEach items="${sessionScope.blackList}" var="blackInfor">
                    <tr>
                        <td id="${blackInfor.user_id}">${blackInfor.user_id}</td>
                        <td>${blackInfor.introduce}</td>
                        <td>${blackInfor.black_date}</td>
                        <td>${blackInfor.black_time}</td>
                        <td>${blackInfor.admin_id}</td>
                        <td><a href="javascript:void(0);" onclick="jiechulahei(${blackInfor.user_id})">解除拉黑</a></td>
                    </tr>
                </c:forEach>
            </table>
        </c:if>

    </div>
</div>

</body>
</html>
